package org.spring.boot.example.dds;

public class DataSourceThreadLocal {

	private static ThreadLocal<String> currentDataSourceName = new ThreadLocal<>();

	public static String getCurrentDataSourceName() {
		return currentDataSourceName.get();
	}

	public static void setCurrentDataSourceName(String dataSourceName) {
		currentDataSourceName.set(dataSourceName);
	}
}
